<?php session_start();

$email = $_SESSION['em'];

$data = mysql_query("SELECT * from `tbluser` where email='$email'"); //where condition
		while($row = mysql_fetch_array($data)){
		$cpass = "$row[12]";}

?>
		
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>PNHS - Modify Password</title>

<link rel="stylesheet" type="text/css" media="screen" href="../css/milk.css" />
<link rel="stylesheet" type="text/css" media="screen" href="../css/jquery.validate.password.css" />
</head>
<body>


      		<form id="signupform" autocomplete="off" method="post" action="editPass.php?cp=ipass">
	  		<br/>             
              <table cellpadding="0" cellspacing="2" border="0">
	  		  <tr>
	  			<td class="label"><label id="lusername" for="cpassword">Current Password</label> </td>
                <td class="field"><input name="cpass" type="text" id="cpass" value= "<?php echo "$cpass"; ?>"/></td>
	  			<!--<td class="field"><input id="cpassword" name="cpassword" type="password" value="" maxlength="50" /></td> -->
	  			<td class="status"></td>
	  		  </tr>
	  		  <tr>
	  			<td class="label"><label id="lpassword" for="password">New Password</label></td>
	  			<td class="field"><input id="password" name="password" type="password" maxlength="50" value="" /></td>
	  			<td class="status">
	  				<div class="password-meter">
	  				<div class="password-meter-message">&nbsp;</div>
	  				<div class="password-meter-bg">
		  			<div class="password-meter-bar"></div>
	  				</div>
	  				</div>
				</td>
	  		  </tr>
	  		  <tr>
	  			<td class="label"><label id="lpassword_confirm" for="password_confirm">Confirm Password</label></td>
	  			<td class="field"><input id="password_confirm" name="password_confirm" type="password" maxlength="50" value="" /></td>
	  			<td class="status"></td>
	  		  </tr>
	  		  <tr>
	  			<td class="label"><label id="lsignupsubmit" for="signupsubmit">Signup</label></td>
	  			<td class="field" colspan="2"><input type="submit" id="bbtn" value="Change Password" /></td>
	  		  </tr>

	  		  </table>
          </form>
</body>
</html>

